package one.stand.mapper;

import one.stand.model.essay.EssayRelatedModel;
import one.stand.request.essay.EssayRelatedRequest;
import one.stand.response.essay.CompanyGoodsResponse;
import one.stand.response.essay.DynamicModelResponse;

import java.util.List;

/**
 * <p>
 * 文章关联 Mapper 接口
 * </p>
 *
 * @author luoyang
 * @since 2020-05-07
 */
public interface EssayRelatedMapper   {

    int addGood(EssayRelatedModel essayRelatedModel);

    int addDynamic(EssayRelatedModel essayRelatedModel);

    int deleteById(Integer id);

    int insert(EssayRelatedModel essayRelatedModel);

    int update(EssayRelatedModel model);

    List<EssayRelatedModel> queryAll(EssayRelatedRequest request);

    EssayRelatedModel queryById(Integer id);

    int deleteEssayRelated(Long id);

    List<CompanyGoodsResponse> queryCompanyGoods(Integer dynamicId);

    List<DynamicModelResponse> queryCompanyDynamic(Integer dynamicId);
}
